package com.xdap.fsapproval.util;

import java.net.URLEncoder;

/**
 * @PROJECT_NAME: service
 * @DESCRIPTION: urlCode转码工具类
 * @USER: 赵文韬
 * @DATE: 2022/9/15 15:40
 */

public class UrlCodeUtil {
    /**
     * URL encode 转码
     * @param s
     * @return
     */
    public static String encodeString(String s){
        try {
            String encode = URLEncoder.encode(s, "UTF-8");
            return encode;
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }
}
